package com.bank.common;
import com.lambdaworks.crypto.SCryptUtil;

public class Hash{
	private int N = 16384;
	private int r = 8;
	private int p = 1;
	private String result;
	
	public String textHasher(String passwd){	
		result = SCryptUtil.scrypt(passwd, N, r, p);
		// salidzinatu ->> SCryptUtil.check(passwd, hashed);
		return result;
	}
	public boolean hashChecker(String passwd,String hash){
		return SCryptUtil.check(passwd, hash);
	}
}